package cn.niit.smbms.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * 公共实体类
 * @author xiaomi
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("BaseEntity")
public class BaseEntity implements Serializable {
    private Long id;
    private Integer delFlag;
    private Long createUserId;
    private String createUserName;
    private Date gmtCreate;
    private Long modifyUserId;
    private String modifyUserName;
    private Date gmtModified;

    /*分页时需要用到的属性，要查询第几页，默认第1页*/
    private Integer page = 2;
    /*每页记录数为10条*/
    private Integer rows = 10;

}
